<?php

class StaticPageController extends Controller {
    /**
     * @var string the default layout for the views. Defaults to 'column2', meaning
     * using two-column layout. See 'protected/views/layouts/column2.php'.
     */
    public $layout='application.views.layouts.column1';

    /**
     * @var CActiveRecord the currently loaded data model instance.
     */
    private $_model;


    public function actionAbout() {
        $this->render('index',array(
                'data'=>StaticPage::model()->find('page_name=:name', array(':name'=>'about'))->text,
        ));
    }
    public function actionHome() {
        $this->render('index',array(
                'data'=>StaticPage::model()->find('page_name=:name', array(':name'=>'home'))->text,
        ));
    }
}
